import request from '@/utils/request'

// 链接列表
export const getLinkListApi = data => {
  return request.get('/ydd_link/list', {
    params: data
  })
}

// 链接添加
export const addLinkApi = data => {
  return request.post('/ydd_link/add', data)
}

// 链接删除
export const delLinkApi = id => {
  return request.get('/ydd_link/del?id=' + id)
}

// 链接详情
export const getLinkInfo = id => {
  return request.get('/ydd_link/rowInfo?id=' + id)
}

// 链接修改
export const editLinkApi = data => {
  return request.post('/ydd_link/update', data)
}
